//分类界面配置
export const orderContentConfig = {
  table: 'order',
  title: '订单',
  top: {
    title: '订单列表',
    subTitle: '对用户下单的订单进行管理',
  },
  tableArr: [
    {
      columnType: 'expand',
      type: 'custom',
      itemConfig: {
        slotName: 'detail'
      }
    },
    {
      label: '订单编号',
      prop: '_id'
    },
    {
      label: '金额',
      prop: 'price'
    },
    {
      label: '状态',
      type: 'status-multie',
      prop: 'status',
      itemProps: {
        statusMap: {
          0: '已取消',
          1: '待付款',
          2: '待发货',
          3: '已完成'
        }
      },
    },
    {
      label: '时间',
      prop: 'time',
      type: 'time',
    },
    {
      label: '操作',
      align: 'center',
      type: 'action',
      itemProps: {
        actions: ['status-multie', 'delete']
      },
      itemConfig: {
        statusProp: 'status',
        showStatus: 2,
        statusMap: {
          0: '取消',
          3: '发货'
        }
      },
      width: '250',
    }
  ]
}
